﻿<?php
	class calc{
		
		//variaveis
		private $_valorA = 0.0;
		private $_valorB = 0.0;
		private $_resp = 0.0;
		
		//construtor
		public function calc($A, $B){
			$this-> _valorA = $A;
			$this-> _valorB = $B;
			$this-> _soma();
		}
		 
		private function _soma(){
			$this-> _resp = $this-> _valorA + $this-> _valorB;
		}
		
		public function set_resp($resp){
			$this-> _resp = $resp;
		}
		public function get_resp(){
			return $this-> _resp; 
		}
	}
?>